package com.app.stick.notice.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.app.common.annotation.Excel;
import com.app.common.core.domain.BaseEntity;

/**
 * 消息通知对象 biz_message_notice
 *
 * @author app
 * @date 2023-12-21
 */
@Data
@TableName(value = "biz_message_notice" )
@ApiModel(value = "BizMessageNotice" , description = "消息通知对象" )
public class BizMessageNotice extends BaseEntity
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 消息ID */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "消息ID")
    private String msgId;

    /** 就诊ID */
    @Excel(name = "就诊ID")
    @ApiModelProperty(value = "就诊ID")
    private String visitId;

    /** 档案ID */
    @Excel(name = "档案ID")
    @ApiModelProperty(value = "档案ID")
    private String patientId;

    /** 消息日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "消息日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "消息日期")
    private Date msgDate;

    /** 消息类别（1=温度过高,2=电量低,2=传感器没接/断开,2=传感器短路） */
    @Excel(name = "消息类别", readConverterExp = "1==温度过高,2=电量低,2=传感器没接/断开,2=传感器短路")
    @ApiModelProperty(value = "消息类别（1=温度过高,2=电量低,2=传感器没接/断开,2=传感器短路）")
    private String msgType;

    /** 消息内容 */
    @Excel(name = "消息内容")
    @ApiModelProperty(value = "消息内容")
    private String msgContent;

    /** 消息未读(1=是,2=否) */
    @Excel(name = "消息未读(1=是,2=否)")
    @ApiModelProperty(value = "消息未读(1=是,2=否)")
    private String msgRead;

    /** 消息读取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "消息读取时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "消息读取时间")
    private Date msgReadDate;

    /** 删除标志（0=正常,2=删除） */
    @ApiModelProperty(value = "删除标志（0=正常,2=删除）")
    private String delFlag;


}
